package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ManholesMapper;
import com.ruoyi.system.domain.Manholes;
import com.ruoyi.system.service.IManholesService;

/**
 * 炮筒表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-18
 */
@Service
public class ManholesServiceImpl implements IManholesService 
{
    @Autowired
    private ManholesMapper manholesMapper;

    /**
     * 查询炮筒表
     * 
     * @param id 炮筒表主键
     * @return 炮筒表
     */
    @Override
    public Manholes selectManholesById(Long id)
    {
        return manholesMapper.selectManholesById(id);
    }

    /**
     * 查询炮筒表列表
     * 
     * @param manholes 炮筒表
     * @return 炮筒表
     */
    @Override
    public List<Manholes> selectManholesList(Manholes manholes)
    {
        return manholesMapper.selectManholesList(manholes);
    }

    /**
     * 新增炮筒表
     * 
     * @param manholes 炮筒表
     * @return 结果
     */
    @Override
    public int insertManholes(Manholes manholes)
    {
        return manholesMapper.insertManholes(manholes);
    }

    /**
     * 修改炮筒表
     * 
     * @param manholes 炮筒表
     * @return 结果
     */
    @Override
    public int updateManholes(Manholes manholes)
    {
        return manholesMapper.updateManholes(manholes);
    }

    /**
     * 批量删除炮筒表
     * 
     * @param ids 需要删除的炮筒表主键
     * @return 结果
     */
    @Override
    public int deleteManholesByIds(Long[] ids)
    {
        return manholesMapper.deleteManholesByIds(ids);
    }

    /**
     * 删除炮筒表信息
     * 
     * @param id 炮筒表主键
     * @return 结果
     */
    @Override
    public int deleteManholesById(Long id)
    {
        return manholesMapper.deleteManholesById(id);
    }
}
